package vashion.azeroth.contant;


/**
 * Created by tingting on 15/8/31.
 * 类目服务异常枚举
 */
public enum ForestErrorEnum {

    QUERY_ERROR(9001, "查询异常"),
    SYSTEM_ERROR(9002, "系统异常"),
    ARG_ERROR(9003, "参数不全"),
    IS_NULL(9004, "类目为空"),

    PROPERTY_QUERY_ERROR(9005, "属性查询异常"),
    PROPERTY_SYSTEM_ERROR(9006, "属性系统异常"),
    PROPERTY_ARG_ERROR(9007, "属性参数不全"),
    PROPERTY_IS_NULL(9008, "属性为空"),

    FOREST_PROPERTY_QUERY_ERROR(9009, "类目属性查询异常"),
    FOREST_PROPERTY_SYSTEM_ERROR(9010, "类目属性系统异常"),
    FOREST_PROPERTY_ARG_ERROR(9011, "类目属性参数不全"),
    FOREST_PROPERTY_IS_NULL(9012, "类目属性为空"),

    ALREADY_EXITS(9013, "值已存在"),;

    private
    int errorCode;
    private
    String errorMessage;

    public int getErrorCode() {
        return errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    private ForestErrorEnum(int errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }


}
